home *** CD-ROM | disk | FTP | other *** search
- /* System-dependent definitions of various files, spool directories, etc */
-
- #include "global.h"
- #ifdef MAC
- #include "config.h"
- #endif
- #if (defined(LATTICE) || defined(MAC))
- /* These compilers require special open modes when reading binary files
- *
- * "The single most brilliant design decision in all of UNIX was the
- * choice of a SINGLE character as the end-of-line indicator" -- M. O'Dell
- *
- * "Whoever picked the end-of-line conventions for MS-DOS and the Macintosh
- * should be shot!" -- P. Karn's corollary to O'Dells' declaration
- *
- * Index definitions for this array are in global.h
- */
- char *binmode[] = {
- "rb", /* Read binary */
- "wb" /* Write binary */
- };
- #else
- /* fopen modes for binary files under Aztec -- same as UNIX */
- char *binmode[] = {
- "r", /* Read */
- "w" /* Write */
- };
- #endif
-
- #ifdef MSDOS
- char startup[] = "/autoexec.net"; /* Initialization file */
- char userfile[] = "/ftpusers"; /* Authorized FTP users and passwords */
- char hosts[] = "/hosts.net"; /* Network host table */
- char mailspool[] = "/spool/mail"; /* Incoming mail */
- char mailqdir[] = "/spool/mqueue"; /* Outgoing mail spool */
- char mailqueue[] = "/spool/mqueue/*.wrk"; /* Outgoing mail work files */
- char routeqdir[] = "/spool/rqueue"; /* queue for router */
- char alias[] = "/alias"; /* the alias file */
- #ifdef _FINGER
- char fingersuf[] = ".txt"; /* Text info for finger command */
- char fingerpath[] = "/finger/"; /* Path to finger info files */
- #endif
- #endif
-
- #ifdef UNIX
- char startup[] = "./startup.net"; /* Initialization file */
- char config[] = "./config.net"; /* Device configuration list */
- char userfile[] = "./ftpusers";
- char hosts[] = "./hosts.net";
- char mailspool[] = "/usr/spool/mail";
- char mailqdir[] = "/usr/spool/mqueue";
- char mailqueue[] = "/usr/spool/mqueue/*.wrk";
- char routeqdir[] = "/spool/rqueue"; /* queue for router */
- char alias[] = "/alias"; /* the alias file */
- #ifdef _FINGER
- char fingersuf[] = ".txt"; /* Text info for finger command */
- char fingerpath[] = "./finger/"; /* Path to finger info files */
- #endif
- #endif
-
- #ifdef AMIGA
- char startup[] = "TCPIP:net.start";
- char config[] = "TCPIP:config.net"; /* Device configuration list */
- char userfile[] = "TCPIP:ftpusers";
- char hosts[] = "TCPIP:hosts.net";
- char mailspool[] = "TCPIP:spool/mail";
- char mailqdir[] = "TCPIP:spool/mqueue";
- char mailqueue[] = "TCPIP:spool/mqueue/*.wrk";
- char routeqdir[] = "TCPIP:spool/rqueue"; /* queue for router */
- char alias[] = "TCPIP:alias"; /* the alias file */
- #ifdef _FINGER
- char fingersuf[] = ".txt"; /* Text info for finger command */
- char fingerpath[] = "TCPIP:finger/"; /* Path to finger info files */
- #endif
- #endif
-
- #ifdef MAC
- /* the Mac init code will insert the above standard names with the absolute path
- * generated on the basis of the folder in which NET was started. Therefore, we only
- * allocate space here and don't initialize these variables.
- */
- char startup[256]; /* net.start */
- char userfile[256]; /* ftpusers */
- char hosts[256]; /* hosts.net */
- char mailspool[256];/* incoming mail folder */
- char mailqdir[256]; /* outgoing mail folder */
- char mailqueue[256];/* file names used for outgoing mail */
- char bmrc[256]; /* mail startup */
- char routeqdir[256];/* mail startup */
- char alias[256]; /* the alias file */
- char applroot[256]; /* root folder, where NET was launched from */
- char logname[256]; /* logging file name */
- char temppath[256]; /* temp files folder */
- char dirnet[256]; /* dir temp file */
- #ifdef _FINGER
- char fingersuf[] = ".txt"; /* Text info for finger command */
- char fingerpath[256]; /* Path to finger info files */
- #endif
- #ifdef CALLBK
- char callbook[256]; /* callbook server database location */
- char calllog[256]; /* callbook server log file */
- #endif
- #endif
-
-
-
-